package com.techstar.api.pojo.public_transport;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 实时车辆
 * @date 2021年7月30日
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "taxi_realtime_vehicle")
@org.hibernate.annotations.Table(appliesTo = "taxi_realtime_vehicle",comment="pbtp-4-实时车辆")
public class TaxiRealtimeVehicle {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@Column(columnDefinition="varchar(100) COMMENT '出租车总量'")
	private String totalNum;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计上线车辆数'")
	private String onlineNum;
	@Column(columnDefinition="varchar(100) COMMENT '当日车辆上线率'")
	private String onlineRatio;
	@Column(columnDefinition="datetime(0) COMMENT '业务统计时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime createTime;
}

